﻿//using AutoMapper;
//using MediatR;
//using SmartProduction.Domain.yjh;
//using SmartProduction.ErrorCode;
//using SmartProduction.Infarstructrue.Interface;
//using SmartProduction.Read.API.Application.Commands.ProductPlanTwo;
//using SmartProduction.Read.API.Dtos;

//namespace SmartProduction.Read.API.Application.CommandHandlers.ProductPlanTwo
//{
//    /// <summary>
//    /// 明细查询处理命令类
//    /// </summary>
//    public class ProductPlanTwoCommandHandler:IRequestHandler<ProductPlanTwoCommand,APIResult<APIPaing<ProductPlanTwoDTO>>>
//    {
//        /// <summary>
//        /// 明细仓储
//        /// </summary>
//        private readonly IBaseRepository<Domain.yjh.ProductPlanTwo> prowtoRep;
//        /// <summary>
//        /// 映射
//        /// </summary>
//        private readonly IMapper mapper;
//        private readonly IBaseRepository<ProductPlan> productRep;

//        public ProductPlanTwoCommandHandler(IBaseRepository<Domain.yjh.ProductPlanTwo> prowtoRep,IMapper mapper,IBaseRepository<ProductPlan> productRep)
//        {
//            this.prowtoRep = prowtoRep;
//            this.mapper = mapper;
//            this.productRep = productRep;
//        }

//        public Task<APIResult<APIPaing<ProductPlanTwoDTO>>> Handle(ProductPlanTwoCommand request, CancellationToken cancellationToken)
//        {
//            APIResult<APIPaing<ProductPlanTwoDTO>> result = new APIResult<APIPaing<ProductPlanTwoDTO>>();

//            var entity= from a in  prowtoRep.GetAll().Result
//                        join  b in  productRep.GetAll().Result 
//                        on a.ProductPlanId equals b.ProductPlanId



//        }
//    }
//}
